home *** CD-ROM | disk | FTP | other *** search
- Path: news.azstarnet.com!usenet
- From: Howard Salmon <captarm@azstarnet.com>
- Newsgroups: comp.lang.c
- Subject: confusion between putchar and printf
- Date: 11 Mar 1996 19:31:35 GMT
- Organization: Arizona Daily Star - AZSTARNET
- Message-ID: <4i1v2n$30o@news.azstarnet.com>
- NNTP-Posting-Host: usr7ip9.azstarnet.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.12(Macintosh; I; 68K)
- X-URL: news:comp.lang.c
-
- K & R (section 1.5) states that "putchar(c) prints the contents of the
- integer variable c as a character, usually on the screen".
-
- Here's a small program that I wrote testing putchar. Why doesn't it
- compile?
-
- #include <stdio.h>
- # define A "hello world!"
-
- main()
- {
- int c;
- c = A;
- putchar(A);
- }
-
- Thanks,
- Howard Salmon (captarm@azstarnet.com)
-
-
-